<link rel="stylesheet" href="{$APP_ROOT}/admin/public/kindeditor/themes/default/default.css" />
<script type='text/javascript'  src='{$APP_ROOT}/admin/public/kindeditor/kindeditor.js'></script>
<script type="text/javascript" src="{$APP_ROOT}/admin/public/kindeditor/lang/zh_CN.js"></script>
<script type="text/javascript">
	var VAR_MODULE = "m";
	var VAR_ACTION = "a";
	var ROOT = '{$APP_ROOT}/file.php';
	var ROOT_PATH = '{$APP_ROOT}';
	var can_use_quota = "{$can_use_quota}";
	var MAX_FILE_SIZE = "<?php echo (app_conf("MAX_IMAGE_SIZE")/1000000)."MB"; ?>";
</script>
<div class="list">
	<div class="list_title clearfix">
		<div class="cur"><a href="{url x="index" r="uc_company#index"}">{$LANG.UC_COMPANY}</a></div>
	</div>
	<div class="uc_r_bl_box clearfix">
	<style>
		.field{ width:800px}
		.uc_r_bl_box .field label{ width:110px}
		.desc-b img{max-width:650px!important}
	</style>
	<div class="blank"></div>
	<form method="post" action="{url x="shop" r="uc_company#save"}" name="modify">
	<div class="inc wb">
		<div class="inc_main">
				<table width="800px" class="user_info_table">
					<tr>
						<td class="tr">
							<button type="button" class="true_btn" id="edit-account">编辑资料</button>
						</td>
					</tr>
					<tr>
						
						<td class="pt10" >
							
							<!--显示框开始-->
							<div class="account-view-box">
								<div class="field company_name">
									<label for="settings-company_name"><span class="red">*</span>公司名称</label>
									<span class="f_l">{$company.company_name}</span>
								</div>
								<div class="blank10"></div>
								<div class="field contact">
									<label for="settings-contact"><span class="red">*</span>企业法人</label>
									<span class="f_l">{$company.contact}</span>
									
								</div>
								<div class="blank10"></div>
															
								<div class="field officetype">
									<label for="settings-officetype"><span class="red">*</span>公司类型</label>
									<span class="f_l">{$company.officetype}</span>
									
								</div>
								<div class="blank10"></div>
								<div class="field officedomain">
									<label for="settings-officedomain"><span class="red">*</span>公司行业</label>
									<span class="f_l">{$company.officedomain}</span>
									
								</div>
								<div class="blank10"></div>
								<div class="field officecale">
									<label for="settings-officecale"><span class="red">*</span>公司规模</label>
									<span class="f_l">{$company.officecale}</span>
									
								</div>
								<div class="blank10"></div>
								<div class="field register_capital">
									<label><span class="red">*</span>注册资金</label>
									<span class="f_l">
									{$company.register_capital}{if $company.register_capital neq ''}万{/if}
									</span>
								</div>
								<div class="blank10"></div>
								<div class="field asset_value">
									<label for="settings-asset_value"><span class="red">*</span>资产净值</label>
									<div class="f_l">
										{$company.asset_value}{if $company.asset_value neq ''}万{/if}
									</div>
								</div>
								<div class="blank10"></div>
								<div class="field officeaddress">
									<label for="settings-officeaddress"><span class="red">*</span>公司地址</label>
									<div class="f_l">
										{$company.officeaddress}
									</div>
								</div>
								<div class="blank10"></div>
								<div class="field description">
									<label for="settings-description"><span class="red">*</span>公司简介</label>
									<div class="f_l desc-b" style="width:650px">
										{$company.description}
									</div>
								</div>
							</div>
							<!--显示框结束-->
							<!--编辑框开始-->
							<div class="hide account-edit-box">
								<div class="field company_name">
									<label for="settings-company_name"><span class="red">*</span>公司名称</label>
									<span class="f_l"><input name="company_name" class="f-input f_l" id="settings-company_name" value="{$company.company_name}" /></span>
								</div>
								<div class="blank10"></div>
								<div class="field contact">
									<label for="settings-contact"><span class="red">*</span>企业法人</label>
									<span class="f_l"><input name="contact" class="f-input f_l" id="settings-contact" value="{$company.contact}" /></span>
									
								</div>
								<div class="blank10"></div>
															
								<div class="field officetype">
									<label for="settings-officetype"><span class="red">*</span>公司类型</label>
									<span class="f_l">
										<select name="officetype" id="settings-officetype">
											<option value="">请选择</option>
											<option value="国家机关" {if $company.officetype eq '国家机关'}selected="selected"{/if}>国家机关</option>
											<option value="事业单位" {if $company.officetype eq '事业单位'}selected="selected"{/if}>事业单位</option>
											<option value="央企（包括下级单位）" {if $company.officetype eq '央企（包括下级单位）'}selected="selected"{/if}>央企（包括下级单位）</option>
											<option value="地方国资委直属企业" {if $company.officetype eq '地方国资委直属企业'}selected="selected"{/if}>地方国资委直属企业</option>
											<option value="世界500强（包括合资企业及下级单位）" {if $company.officetype eq '世界500强（包括合资企业及下级单位）'}selected="selected"{/if}>世界500强（包括合资企业及下级单位）</option>
											<option value="外资企业（包括合资企业）" {if $company.officetype eq '外资企业（包括合资企业）'}selected="selected"{/if}>外资企业（包括合资企业）</option>
											<option value="一般上市公司（包括国外上市）" {if $company.officetype eq '一般上市公司（包括国外上市）'}selected="selected"{/if}>一般上市公司（包括国外上市）</option>
											<option value="一般民营企业" {if $company.officetype eq '一般民营企业'}selected="selected"{/if}>一般民营企业</option>
										</select>
									</span>
									
								</div>
								<div class="blank10"></div>
								<div class="field officedomain">
									<label for="settings-officedomain"><span class="red">*</span>公司行业</label>
									<span class="f_l">
										<select name="officedomain" id="settings-officedomain">
											<option value="">请选择</option>
											<option value="制造业" {if $company.officedomain eq '制造业'}selected="selected"{/if}>制造业</option>
											<option value="IT" {if $company.officedomain eq 'IT'}selected="selected"{/if}>IT</option>
											<option value="政府机关" {if $company.officedomain eq '政府机关'}selected="selected"{/if}>政府机关</option>
											<option value="媒体/广告" {if $company.officedomain eq '媒体/广告'}selected="selected"{/if}>媒体/广告</option>
											<option value="零售/批发" {if $company.officedomain eq '零售/批发'}selected="selected"{/if}>零售/批发</option>
											<option value="教育/培训" {if $company.officedomain eq '教育/培训'}selected="selected"{/if}>教育/培训</option>
											<option value="公共事业" {if $company.officedomain eq '公共事业'}selected="selected"{/if}>公共事业</option>
											<option value="交通运输业" {if $company.officedomain eq '交通运输业'}selected="selected"{/if}>交通运输业</option>
											<option value="房地产业" {if $company.officedomain eq '房地产业'}selected="selected"{/if}>房地产业</option>
											<option value="能源业" {if $company.officedomain eq '能源业'}selected="selected"{/if}>能源业</option>
											<option value="金融/法律" {if $company.officedomain eq '金融/法律'}selected="selected"{/if}>金融/法律</option>
											<option value="餐饮/旅馆业" {if $company.officedomain eq '餐饮/旅馆业'}selected="selected"{/if}>餐饮/旅馆业</option>
											<option value="医疗/卫生/保健" {if $company.officedomain eq '医疗/卫生/保健'}selected="selected"{/if}>医疗/卫生/保健</option>
											<option value="建筑工程" {if $company.officedomain eq '建筑工程'}selected="selected"{/if}>建筑工程</option>
											<option value="农业" {if $company.officedomain eq '农业'}selected="selected"{/if}>农业</option>
											<option value="娱乐服务业" {if $company.officedomain eq '娱乐服务业'}selected="selected"{/if}>娱乐服务业</option>
											<option value="体育/艺术" {if $company.officedomain eq '体育/艺术'}selected="selected"{/if}>体育/艺术</option>
											<option value="公益组织" {if $company.officedomain eq '公益组织'}selected="selected"{/if}>公益组织</option>
											<option value="其它" {if $company.officedomain eq '其它'}selected="selected"{/if}>其它</option>
										</select>
									</span>
									
								</div>
								<div class="blank10"></div>
								<div class="field officecale">
									<label for="settings-officecale"><span class="red">*</span>公司规模</label>
									<span class="f_l">
										<select name="officecale" id="settings-officecale">
											<option value="">请选择</option>
											<option value="10人以下" {if $company.officecale eq '10人以下'}selected="selected"{/if}>10人以下</option>
											<option value="10-100人" {if $company.officecale eq '10-100人'}selected="selected"{/if}>10-100人</option>
											<option value="100-500人" {if $company.officecale eq '100-500人'}selected="selected"{/if}>100-500人</option>
											<option value="500人以上" {if $company.officecale eq '500人以上'}selected="selected"{/if}>500人以上</option>
										</select>
									</span>
									
								</div>
								<div class="blank10"></div>
								<div class="field register_capital">
									<label><span class="red">*</span>注册资金</label>
									<span class="f_l">
										<input name="register_capital" class="f-input f_l" id="settings-register_capital" value="{$company.register_capital}" />万
									</span>
								</div>
								<div class="blank10"></div>
								<div class="field asset_value">
									<label for="settings-asset_value"><span class="red">*</span>资产净值</label>
									<div class="f_l">
										<input name="asset_value" class="f-input f_l" id="settings-asset_value" value="{$company.asset_value}" />万
									</div>
								</div>
								<div class="blank10"></div>
								<div class="field officeaddress">
									<label for="settings-officeaddress"><span class="red">*</span>公司地址</label>
									<div class="f_l">
										<input name="officeaddress" class="f-input f_l" id="settings-officeaddress" value="{$company.officeaddress}" />
									</div>
								</div>
								<div class="blank10"></div>
								<div class="field description">
									<label for="settings-description"><span class="red">*</span>公司简介</label>
									<div class="f_l" style="width:650px">
										{function name="show_ke_textarea" id="description" w="650" height="350" cnt="$company.description"}
									</div>
								</div>
							</div>
							<!--编辑框结束-->
						</td>
						
					</tr>
					
				</table>
				<div class="blank20"></div>
				<div style="text-align:center">
					<div class="hide account-edit-box">
						<input type="submit" class="sub_btn theme_bgcolor" id="settings-submit" name="commit" value="保存更改">
					</div>
				</div>
				<div class="blank"></div>
		</div>
		<div class="inc_foot"></div>
	</div>
	</form>
	</div>
</div>
<script type="text/javascript" src="{$TMPL}/js/ajaxupload.js"></script>
<script type="text/javascript">
$(document).ready(function(){
	$("#settings-submit").click(function(){
		if($("#settings-company_name").val()==""){
			$.showErr("公司名称不能为空");
			return false;
		}
		if($("#settings-contact").val()==""){
			$.showErr("企业法人不能为空");
			return false;
		}
		if($("#settings-officetype").val()==""){
			$.showErr("请选择公司类型");
			return false;
		}
		if($("#settings-officedomain").val()==""){
			$.showErr("请选择公司行业");
			return false;
		}
		if($("#settings-officecale").val()==""){
			$.showErr("请选择公司规模");
			return false;
		}
		if($("#settings-register_capital").val()==""){
			$.showErr("注册资金不能为空");
			return false;
		}
		if($("#settings-asset_value").val()==""){
			$.showErr("资产净值不能为空");
			return false;
		}
		if($("#description").val()==""){
			$.showErr("公司简介不能为空");
			return false;
		}
	});
});
</script>